package com.cunshe.entity.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.Date;

/**
 * 资料下载
 * @author xiao
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class DataDownInsertVO implements Serializable {

    /**
     * 系列名称
     */
    @ApiModelProperty(value = "系列名称")
    @NotBlank(message = "[series]不能为空")
    @Size(max = 255, message = "${validatedValue}长度不能大于{max}")
    private String series;

    /**
     * 标题
     */
    @ApiModelProperty(value = "标题")
    @NotBlank(message = "[title]不能为空")
    @Size(max = 255, message = "${validatedValue}长度不能大于{max}")
    private String title;

    /**
     * 型号
     */
    @ApiModelProperty(value = "型号")
    @NotBlank(message = "[model]不能为空")
    @Size(max = 255, message = "${model}长度不能大于{max}")
    private String model;

    /**
     * 附件地址
     */
    @ApiModelProperty(value = "附件地址")
    @NotBlank(message = "[url]不能为空")
    @Size(max = 255, message = "${validatedValue}长度不能大于{max}")
    private String url;

    private static final long serialVersionUID = 1L;
}